<div id="sidebar">

<?php if(simpax_is_sidebar_img()) { ?>
<img src="<?php simpax_sidebar_img(); ?>" alt="SIDEBAR" class="centered" />
<?php } ?>

<?php if ( !function_exists('dynamic_sidebar')
        || !dynamic_sidebar('Sidebar') ) : ?>

<div class="navi-item">
	<h3 class="title-navi"><?php _e('Suche','simpax');?></h3>
	<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
	<div><input type="text" value="" name="s" id="s" />
	<input type="submit" id="searchsubmit" value="Suchen" />
	</div>
	</form>
</div>

<div class="navi-item">
<h3 class="title-navi"><?php _e('Seiten','simpax');?></h3>
<ul style="list-style-type:none;">
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
</div>

<div class="navi-item">
<ul>
<h3 class="title-navi">Links</h3>
<?php get_links('', '<li>', '</li>', '<br />', FALSE, 'rand', TRUE, 
TRUE, 5, TRUE); ?>
</ul>
</div>

<?php endif; ?>

</div>